package com.example.exceldemo.utils.poi.v2.subpackage.extend;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public  class ExportCellMerge {
    private int firstRow;
    private int lastRow;
    private int firstCol;
    private int lastCol;

    // 单元格数据
    private String mergeCellValue;

    // 单元格样式
    private ExportCellStyle mergeCellStyle;

    public ExportCellMerge(int firstRow, int lastRow, int firstCol, int lastCol) {
        this.firstRow = firstRow;
        this.lastRow = lastRow;
        this.firstCol = firstCol;
        this.lastCol = lastCol;
    }

    public ExportCellMerge(int firstRow, int lastRow, int firstCol, int lastCol, String mergeCellValue) {
        this.firstRow = firstRow;
        this.lastRow = lastRow;
        this.firstCol = firstCol;
        this.lastCol = lastCol;
        this.mergeCellValue = mergeCellValue;
    }


}